package com.share.common.userinfo;

import com.share.wechat.core.entity.UserDetail;

import java.io.Serializable;
import java.util.Date;

/**
 * 小的密码机制
 * Created by er on 2017/7/10.
 */
public class Token implements Serializable {
    public static final String token = "tokenId";

    /**
     * tokenId
     */
    private UserDetail userDetail;

    private String tokenId;

    private Date loginDate;
    private Date logoutDate;
    private boolean validate;

    public String getTokenId() {
        return tokenId;
    }

    public void setTokenId(String tokenId) {
        this.tokenId = tokenId;
    }


    public Date getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(Date loginDate) {
        this.loginDate = loginDate;
    }

    public Date getLogoutDate() {
        return logoutDate;
    }

    public void setLogoutDate(Date logoutDate) {
        this.logoutDate = logoutDate;
    }

    public boolean isValidate() {
        return validate;
    }

    public void setValidate(boolean validate) {
        this.validate = validate;
    }


    public UserDetail getUserDetail() {
        return userDetail;
    }

    public void setUserDetail(UserDetail userDetail) {
        this.userDetail = userDetail;
    }

    @Override
    public String toString() {
        return "Token{" +
                "userDetail=" + userDetail +
                ", tokenId='" + tokenId + '\'' +
                ", loginDate=" + loginDate +
                ", logoutDate=" + logoutDate +
                ", validate=" + validate +
                '}';
    }
}